.class public Lcom/bitauto/autoeasy/MainActivity;
.super Landroid/app/TabActivity;
.source "MainActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# static fields
.field public static mainActivity:Lcom/bitauto/autoeasy/MainActivity;


# instance fields
.field private BUTTONSIZE:I

.field TAG:Ljava/lang/String;

.field button:[Landroid/widget/Button;

.field button_d:[I

.field button_n:[I

.field dialog:Landroid/app/ProgressDialog;

.field index:I

.field private mTabHost:Landroid/widget/TabHost;

.field tempView:Landroid/view/View;


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    const/4 v1, 0x4

    .line 27
    invoke-direct {p0}, Landroid/app/TabActivity;-><init>()V

    .line 30
    iput v1, p0, Lcom/bitauto/autoeasy/MainActivity;->BUTTONSIZE:I

    .line 31
    iget v0, p0, Lcom/bitauto/autoeasy/MainActivity;->BUTTONSIZE:I

    new-array v0, v0, [Landroid/widget/Button;

    iput-object v0, p0, Lcom/bitauto/autoeasy/MainActivity;->button:[Landroid/widget/Button;

    .line 33
    new-array v0, v1, [I

    fill-array-data v0, :array_0

    iput-object v0, p0, Lcom/bitauto/autoeasy/MainActivity;->button_n:[I

    .line 34
    new-array v0, v1, [I

    fill-array-data v0, :array_1

    iput-object v0, p0, Lcom/bitauto/autoeasy/MainActivity;->button_d:[I

    .line 43
    const-string v0, "MainActivity"

    iput-object v0, p0, Lcom/bitauto/autoeasy/MainActivity;->TAG:Ljava/lang/String;

    .line 27
    return-void

    .line 33
    nop

    :array_0
    .array-data 0x4
        0xft 0x0t 0x2t 0x7ft
        0x11t 0x0t 0x2t 0x7ft
        0x13t 0x0t 0x2t 0x7ft
        0x16t 0x0t 0x2t 0x7ft
    .end array-data

    .line 34
    :array_1
    .array-data 0x4
        0xet 0x0t 0x2t 0x7ft
        0x10t 0x0t 0x2t 0x7ft
        0x12t 0x0t 0x2t 0x7ft
        0x14t 0x0t 0x2t 0x7ft
    .end array-data
.end method


# virtual methods
.method public getTitleButton()Landroid/widget/ImageButton;
    .locals 1

    .prologue
    .line 158
    const v0, 0x7f0b01ac

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object p0

    .end local p0
    check-cast p0, Landroid/widget/ImageButton;

    return-object p0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 4
    .parameter "v"

    .prologue
    const/4 v3, 0x3

    const/4 v2, 0x2

    const/4 v1, 0x1

    .line 225
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    .line 259
    :cond_0
    :goto_0
    return-void

    .line 227
    :pswitch_0
    iget v0, p0, Lcom/bitauto/autoeasy/MainActivity;->index:I

    if-eqz v0, :cond_0

    .line 228
    const/4 v0, 0x0

    iput v0, p0, Lcom/bitauto/autoeasy/MainActivity;->index:I

    .line 229
    iget v0, p0, Lcom/bitauto/autoeasy/MainActivity;->index:I

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/MainActivity;->swichButtonBG(I)V

    .line 230
    iget-object v0, p0, Lcom/bitauto/autoeasy/MainActivity;->mTabHost:Landroid/widget/TabHost;

    iget v1, p0, Lcom/bitauto/autoeasy/MainActivity;->index:I

    invoke-virtual {v0, v1}, Landroid/widget/TabHost;->setCurrentTab(I)V

    .line 231
    sget-object v0, Lcom/bitauto/autoeasy/MainActivity;->mainActivity:Lcom/bitauto/autoeasy/MainActivity;

    const-string v1, "\u8f66\u578b"

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/MainActivity;->setTitleContent(Ljava/lang/String;)V

    goto :goto_0

    .line 235
    :pswitch_1
    iget v0, p0, Lcom/bitauto/autoeasy/MainActivity;->index:I

    if-eq v0, v1, :cond_0

    .line 236
    iput v1, p0, Lcom/bitauto/autoeasy/MainActivity;->index:I

    .line 237
    iget v0, p0, Lcom/bitauto/autoeasy/MainActivity;->index:I

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/MainActivity;->swichButtonBG(I)V

    .line 238
    iget-object v0, p0, Lcom/bitauto/autoeasy/MainActivity;->mTabHost:Landroid/widget/TabHost;

    iget v1, p0, Lcom/bitauto/autoeasy/MainActivity;->index:I

    invoke-virtual {v0, v1}, Landroid/widget/TabHost;->setCurrentTab(I)V

    .line 239
    sget-object v0, Lcom/bitauto/autoeasy/MainActivity;->mainActivity:Lcom/bitauto/autoeasy/MainActivity;

    const-string v1, "\u65b0\u95fb"

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/MainActivity;->setTitleContent(Ljava/lang/String;)V

    goto :goto_0

    .line 243
    :pswitch_2
    iget v0, p0, Lcom/bitauto/autoeasy/MainActivity;->index:I

    if-eq v0, v2, :cond_0

    .line 244
    iput v2, p0, Lcom/bitauto/autoeasy/MainActivity;->index:I

    .line 245
    iget v0, p0, Lcom/bitauto/autoeasy/MainActivity;->index:I

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/MainActivity;->swichButtonBG(I)V

    .line 246
    iget-object v0, p0, Lcom/bitauto/autoeasy/MainActivity;->mTabHost:Landroid/widget/TabHost;

    iget v1, p0, Lcom/bitauto/autoeasy/MainActivity;->index:I

    invoke-virtual {v0, v1}, Landroid/widget/TabHost;->setCurrentTab(I)V

    .line 247
    sget-object v0, Lcom/bitauto/autoeasy/MainActivity;->mainActivity:Lcom/bitauto/autoeasy/MainActivity;

    const-string v1, "\u8bba\u575b"

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/MainActivity;->setTitleContent(Ljava/lang/String;)V

    goto :goto_0

    .line 251
    :pswitch_3
    iget v0, p0, Lcom/bitauto/autoeasy/MainActivity;->index:I

    if-eq v0, v3, :cond_0

    .line 252
    iput v3, p0, Lcom/bitauto/autoeasy/MainActivity;->index:I

    .line 253
    iget v0, p0, Lcom/bitauto/autoeasy/MainActivity;->index:I

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/MainActivity;->swichButtonBG(I)V

    .line 254
    iget-object v0, p0, Lcom/bitauto/autoeasy/MainActivity;->mTabHost:Landroid/widget/TabHost;

    iget v1, p0, Lcom/bitauto/autoeasy/MainActivity;->index:I

    invoke-virtual {v0, v1}, Landroid/widget/TabHost;->setCurrentTab(I)V

    .line 255
    sget-object v0, Lcom/bitauto/autoeasy/MainActivity;->mainActivity:Lcom/bitauto/autoeasy/MainActivity;

    const-string v1, "\u6536\u85cf"

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/MainActivity;->setTitleContent(Ljava/lang/String;)V

    goto :goto_0

    .line 225
    :pswitch_data_0
    .packed-switch 0x7f0b0024
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 9
    .parameter "savedInstanceState"

    .prologue
    const v7, 0x7f02000d

    const-string v8, ""

    .line 48
    invoke-super {p0, p1}, Landroid/app/TabActivity;->onCreate(Landroid/os/Bundle;)V

    .line 50
    const v5, 0x7f030028

    invoke-virtual {p0, v5}, Lcom/bitauto/autoeasy/MainActivity;->setTitle(I)V

    .line 51
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/MainActivity;->setToolBar()V

    .line 52
    const/4 v5, 0x1

    iput v5, p0, Lcom/bitauto/autoeasy/MainActivity;->index:I

    .line 53
    iget v5, p0, Lcom/bitauto/autoeasy/MainActivity;->index:I

    invoke-virtual {p0, v5}, Lcom/bitauto/autoeasy/MainActivity;->swichButtonBG(I)V

    .line 55
    sput-object p0, Lcom/bitauto/autoeasy/MainActivity;->mainActivity:Lcom/bitauto/autoeasy/MainActivity;

    .line 57
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/MainActivity;->getTabHost()Landroid/widget/TabHost;

    move-result-object v0

    .line 58
    .local v0, localHost:Landroid/widget/TabHost;
    iput-object v0, p0, Lcom/bitauto/autoeasy/MainActivity;->mTabHost:Landroid/widget/TabHost;

    .line 60
    iget-object v5, p0, Lcom/bitauto/autoeasy/MainActivity;->mTabHost:Landroid/widget/TabHost;

    const-string v6, "selectCar"

    invoke-virtual {v5, v6}, Landroid/widget/TabHost;->newTabSpec(Ljava/lang/String;)Landroid/widget/TabHost$TabSpec;

    move-result-object v1

    .line 61
    .local v1, mTabSpec1:Landroid/widget/TabHost$TabSpec;
    new-instance v5, Landroid/content/Intent;

    const-class v6, Lcom/bitauto/autoeasy/selectcar/SelectCarActivity;

    invoke-direct {v5, p0, v6}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {v1, v5}, Landroid/widget/TabHost$TabSpec;->setContent(Landroid/content/Intent;)Landroid/widget/TabHost$TabSpec;

    .line 62
    const-string v5, ""

    invoke-virtual {p0}, Lcom/bitauto/autoeasy/MainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    invoke-virtual {v5, v7}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v5

    invoke-virtual {v1, v8, v5}, Landroid/widget/TabHost$TabSpec;->setIndicator(Ljava/lang/CharSequence;Landroid/graphics/drawable/Drawable;)Landroid/widget/TabHost$TabSpec;

    .line 63
    iget-object v5, p0, Lcom/bitauto/autoeasy/MainActivity;->mTabHost:Landroid/widget/TabHost;

    invoke-virtual {v5, v1}, Landroid/widget/TabHost;->addTab(Landroid/widget/TabHost$TabSpec;)V

    .line 65
    iget-object v5, p0, Lcom/bitauto/autoeasy/MainActivity;->mTabHost:Landroid/widget/TabHost;

    const-string v6, "news"

    invoke-virtual {v5, v6}, Landroid/widget/TabHost;->newTabSpec(Ljava/lang/String;)Landroid/widget/TabHost$TabSpec;

    move-result-object v2

    .line 66
    .local v2, mTabSpec2:Landroid/widget/TabHost$TabSpec;
    new-instance v5, Landroid/content/Intent;

    const-class v6, Lcom/bitauto/autoeasy/news/NewsActivity;

    invoke-direct {v5, p0, v6}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {v2, v5}, Landroid/widget/TabHost$TabSpec;->setContent(Landroid/content/Intent;)Landroid/widget/TabHost$TabSpec;

    .line 67
    const-string v5, ""

    invoke-virtual {p0}, Lcom/bitauto/autoeasy/MainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    invoke-virtual {v5, v7}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v5

    invoke-virtual {v2, v8, v5}, Landroid/widget/TabHost$TabSpec;->setIndicator(Ljava/lang/CharSequence;Landroid/graphics/drawable/Drawable;)Landroid/widget/TabHost$TabSpec;

    .line 68
    iget-object v5, p0, Lcom/bitauto/autoeasy/MainActivity;->mTabHost:Landroid/widget/TabHost;

    invoke-virtual {v5, v2}, Landroid/widget/TabHost;->addTab(Landroid/widget/TabHost$TabSpec;)V

    .line 70
    iget-object v5, p0, Lcom/bitauto/autoeasy/MainActivity;->mTabHost:Landroid/widget/TabHost;

    const-string v6, "bbs"

    invoke-virtual {v5, v6}, Landroid/widget/TabHost;->newTabSpec(Ljava/lang/String;)Landroid/widget/TabHost$TabSpec;

    move-result-object v3

    .line 71
    .local v3, mTabSpec3:Landroid/widget/TabHost$TabSpec;
    new-instance v5, Landroid/content/Intent;

    const-class v6, Lcom/bitauto/autoeasy/bbs/BBSActivity;

    invoke-direct {v5, p0, v6}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {v3, v5}, Landroid/widget/TabHost$TabSpec;->setContent(Landroid/content/Intent;)Landroid/widget/TabHost$TabSpec;

    .line 72
    const-string v5, ""

    invoke-virtual {p0}, Lcom/bitauto/autoeasy/MainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    invoke-virtual {v5, v7}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v5

    invoke-virtual {v3, v8, v5}, Landroid/widget/TabHost$TabSpec;->setIndicator(Ljava/lang/CharSequence;Landroid/graphics/drawable/Drawable;)Landroid/widget/TabHost$TabSpec;

    .line 73
    iget-object v5, p0, Lcom/bitauto/autoeasy/MainActivity;->mTabHost:Landroid/widget/TabHost;

    invoke-virtual {v5, v3}, Landroid/widget/TabHost;->addTab(Landroid/widget/TabHost$TabSpec;)V

    .line 75
    iget-object v5, p0, Lcom/bitauto/autoeasy/MainActivity;->mTabHost:Landroid/widget/TabHost;

    const-string v6, "mySpace"

    invoke-virtual {v5, v6}, Landroid/widget/TabHost;->newTabSpec(Ljava/lang/String;)Landroid/widget/TabHost$TabSpec;

    move-result-object v4

    .line 76
    .local v4, mTabSpec4:Landroid/widget/TabHost$TabSpec;
    new-instance v5, Landroid/content/Intent;

    const-class v6, Lcom/bitauto/autoeasy/favorite/FavoriteList;

    invoke-direct {v5, p0, v6}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {v4, v5}, Landroid/widget/TabHost$TabSpec;->setContent(Landroid/content/Intent;)Landroid/widget/TabHost$TabSpec;

    .line 77
    const-string v5, ""

    invoke-virtual {p0}, Lcom/bitauto/autoeasy/MainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    invoke-virtual {v5, v7}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v5

    invoke-virtual {v4, v8, v5}, Landroid/widget/TabHost$TabSpec;->setIndicator(Ljava/lang/CharSequence;Landroid/graphics/drawable/Drawable;)Landroid/widget/TabHost$TabSpec;

    .line 78
    iget-object v5, p0, Lcom/bitauto/autoeasy/MainActivity;->mTabHost:Landroid/widget/TabHost;

    invoke-virtual {v5, v4}, Landroid/widget/TabHost;->addTab(Landroid/widget/TabHost$TabSpec;)V

    .line 80
    iget-object v5, p0, Lcom/bitauto/autoeasy/MainActivity;->mTabHost:Landroid/widget/TabHost;

    iget v6, p0, Lcom/bitauto/autoeasy/MainActivity;->index:I

    invoke-virtual {v5, v6}, Landroid/widget/TabHost;->setCurrentTab(I)V

    .line 82
    const-string v5, "\u65b0\u95fb"

    invoke-virtual {p0, v5}, Lcom/bitauto/autoeasy/MainActivity;->setTitleContent(Ljava/lang/String;)V

    .line 83
    return-void
.end method

.method public onCreateOptionsMenu(Landroid/view/Menu;)Z
    .locals 2
    .parameter "menu"

    .prologue
    .line 190
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/MainActivity;->getMenuInflater()Landroid/view/MenuInflater;

    move-result-object v0

    .line 191
    .local v0, inflater:Landroid/view/MenuInflater;
    const/high16 v1, 0x7f0a

    invoke-virtual {v0, v1, p1}, Landroid/view/MenuInflater;->inflate(ILandroid/view/Menu;)V

    .line 192
    const/4 v1, 0x1

    return v1
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 1
    .parameter "keyCode"
    .parameter "event"

    .prologue
    .line 178
    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v0

    if-nez v0, :cond_0

    .line 179
    invoke-static {p0}, Lcom/bitauto/autoeasy/tool/ToolCity;->ExitDialog(Landroid/content/Context;)Landroid/app/Dialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    .line 180
    const/4 v0, 0x0

    .line 182
    :goto_0
    return v0

    :cond_0
    invoke-super {p0, p1, p2}, Landroid/app/TabActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v0

    goto :goto_0
.end method

.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
    .locals 2
    .parameter "item"

    .prologue
    .line 199
    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    .line 211
    :goto_0
    const/4 v0, 0x0

    return v0

    .line 201
    :pswitch_0
    invoke-static {p0}, Lcom/bitauto/autoeasy/tool/ToolCity;->downLoadCity(Landroid/content/Context;)V

    goto :goto_0

    .line 204
    :pswitch_1
    iget-object v0, p0, Lcom/bitauto/autoeasy/MainActivity;->TAG:Ljava/lang/String;

    const-string v1, "\u5173\u4e8e"

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 205
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/bitauto/autoeasy/AboutActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/MainActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    .line 208
    :pswitch_2
    invoke-static {p0}, Lcom/bitauto/autoeasy/tool/ToolCity;->ExitDialog(Landroid/content/Context;)Landroid/app/Dialog;

    goto :goto_0

    .line 199
    nop

    :pswitch_data_0
    .packed-switch 0x7f0b01c8
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method

.method public onPause()V
    .locals 0

    .prologue
    .line 93
    invoke-super {p0}, Landroid/app/TabActivity;->onPause()V

    .line 94
    invoke-static {p0}, Lcom/mobclick/android/MobclickAgent;->onPause(Landroid/content/Context;)V

    .line 95
    return-void
.end method

.method protected onResume()V
    .locals 0

    .prologue
    .line 88
    invoke-super {p0}, Landroid/app/TabActivity;->onResume()V

    .line 89
    invoke-static {p0}, Lcom/mobclick/android/MobclickAgent;->onResume(Landroid/content/Context;)V

    .line 90
    return-void
.end method

.method public setTitle(I)V
    .locals 3
    .parameter "layoutid"

    .prologue
    const/4 v2, 0x7

    .line 102
    invoke-virtual {p0, v2}, Lcom/bitauto/autoeasy/MainActivity;->requestWindowFeature(I)Z

    .line 103
    invoke-virtual {p0, p1}, Lcom/bitauto/autoeasy/MainActivity;->setContentView(I)V

    .line 104
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/MainActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const v1, 0x7f030022

    invoke-virtual {v0, v2, v1}, Landroid/view/Window;->setFeatureInt(II)V

    .line 105
    return-void
.end method

.method public setTitleButtonVisit(Z)V
    .locals 2
    .parameter "flag"

    .prologue
    .line 136
    const v1, 0x7f0b01ac

    invoke-virtual {p0, v1}, Lcom/bitauto/autoeasy/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageButton;

    .line 137
    .local v0, button:Landroid/widget/ImageButton;
    if-eqz p1, :cond_0

    .line 138
    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setVisibility(I)V

    .line 142
    :goto_0
    return-void

    .line 140
    :cond_0
    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setVisibility(I)V

    goto :goto_0
.end method

.method public setTitleContent(Ljava/lang/String;)V
    .locals 2
    .parameter "str"

    .prologue
    .line 112
    const v1, 0x7f0b01ab

    invoke-virtual {p0, v1}, Lcom/bitauto/autoeasy/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 113
    .local v0, textView:Landroid/widget/TextView;
    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 114
    return-void
.end method

.method public setTitleProgressBar(Z)V
    .locals 3
    .parameter "flog"

    .prologue
    .line 127
    if-eqz p1, :cond_1

    .line 128
    const-string v0, ""

    invoke-virtual {p0}, Lcom/bitauto/autoeasy/MainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f080004

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    invoke-static {p0, v0, v1, v2}, Landroid/app/ProgressDialog;->show(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Z)Landroid/app/ProgressDialog;

    move-result-object v0

    iput-object v0, p0, Lcom/bitauto/autoeasy/MainActivity;->dialog:Landroid/app/ProgressDialog;

    .line 133
    :cond_0
    :goto_0
    return-void

    .line 130
    :cond_1
    iget-object v0, p0, Lcom/bitauto/autoeasy/MainActivity;->dialog:Landroid/app/ProgressDialog;

    if-eqz v0, :cond_0

    .line 131
    iget-object v0, p0, Lcom/bitauto/autoeasy/MainActivity;->dialog:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->dismiss()V

    goto :goto_0
.end method

.method public setTitleProgressBar2(Z)V
    .locals 3
    .parameter "flog"

    .prologue
    .line 149
    if-eqz p1, :cond_1

    .line 150
    const-string v0, ""

    invoke-virtual {p0}, Lcom/bitauto/autoeasy/MainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f080004

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    invoke-static {p0, v0, v1, v2}, Landroid/app/ProgressDialog;->show(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Z)Landroid/app/ProgressDialog;

    move-result-object v0

    iput-object v0, p0, Lcom/bitauto/autoeasy/MainActivity;->dialog:Landroid/app/ProgressDialog;

    .line 155
    :cond_0
    :goto_0
    return-void

    .line 152
    :cond_1
    iget-object v0, p0, Lcom/bitauto/autoeasy/MainActivity;->dialog:Landroid/app/ProgressDialog;

    if-eqz v0, :cond_0

    .line 153
    iget-object v0, p0, Lcom/bitauto/autoeasy/MainActivity;->dialog:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->dismiss()V

    goto :goto_0
.end method

.method public setToolBar()V
    .locals 6

    .prologue
    const/4 v5, 0x3

    const/4 v4, 0x2

    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 166
    iget-object v1, p0, Lcom/bitauto/autoeasy/MainActivity;->button:[Landroid/widget/Button;

    const v0, 0x7f0b0024

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    aput-object v0, v1, v2

    .line 167
    iget-object v0, p0, Lcom/bitauto/autoeasy/MainActivity;->button:[Landroid/widget/Button;

    aget-object v0, v0, v2

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 168
    iget-object v1, p0, Lcom/bitauto/autoeasy/MainActivity;->button:[Landroid/widget/Button;

    const v0, 0x7f0b0025

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    aput-object v0, v1, v3

    .line 169
    iget-object v0, p0, Lcom/bitauto/autoeasy/MainActivity;->button:[Landroid/widget/Button;

    aget-object v0, v0, v3

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 170
    iget-object v1, p0, Lcom/bitauto/autoeasy/MainActivity;->button:[Landroid/widget/Button;

    const v0, 0x7f0b0026

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    aput-object v0, v1, v4

    .line 171
    iget-object v0, p0, Lcom/bitauto/autoeasy/MainActivity;->button:[Landroid/widget/Button;

    aget-object v0, v0, v4

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 172
    iget-object v1, p0, Lcom/bitauto/autoeasy/MainActivity;->button:[Landroid/widget/Button;

    const v0, 0x7f0b0027

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    aput-object v0, v1, v5

    .line 173
    iget-object v0, p0, Lcom/bitauto/autoeasy/MainActivity;->button:[Landroid/widget/Button;

    aget-object v0, v0, v5

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 175
    return-void
.end method

.method public swichButtonBG(I)V
    .locals 3
    .parameter "num"

    .prologue
    .line 215
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    iget v1, p0, Lcom/bitauto/autoeasy/MainActivity;->BUTTONSIZE:I

    if-lt v0, v1, :cond_0

    .line 221
    return-void

    .line 216
    :cond_0
    if-ne v0, p1, :cond_1

    .line 217
    iget-object v1, p0, Lcom/bitauto/autoeasy/MainActivity;->button:[Landroid/widget/Button;

    aget-object v1, v1, v0

    iget-object v2, p0, Lcom/bitauto/autoeasy/MainActivity;->button_d:[I

    aget v2, v2, v0

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 215
    :goto_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 219
    :cond_1
    iget-object v1, p0, Lcom/bitauto/autoeasy/MainActivity;->button:[Landroid/widget/Button;

    aget-object v1, v1, v0

    iget-object v2, p0, Lcom/bitauto/autoeasy/MainActivity;->button_n:[I

    aget v2, v2, v0

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setBackgroundResource(I)V

    goto :goto_1
.end method
